﻿<%@ Page Title="" Language="VB" MasterPageFile="~/Prototype.master" AutoEventWireup="false" CodeFile="AddDiscussions.aspx.vb" Inherits="Discussions_AddDiscussions" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">

    <fieldset>
    <legend><h2>Add Your Discussion Here</h2></legend>
    <form action="" method="post">
    <ul>
         <li>
        <label for="Topic">Discussion Topic:</label>
        <asp:TextBox ID="txtTopic" runat="server"></asp:TextBox>
        </li>

        <li>
        <label for="Author">Author:</label>
        <asp:TextBox ID="txtAuthor" runat="server"></asp:TextBox>
        </li>

        <li>
        <label for="Category">Category:</label>
        
            <asp:DropDownList ID="DDLCategories" runat="server" DataSourceID="DSCategories" 
                DataTextField="Type" DataValueField="ID">
            </asp:DropDownList>
            <asp:SqlDataSource ID="DSCategories" runat="server" 
                ConnectionString="<%$ ConnectionStrings:myFirstDatabase %>" 
                ProviderName="<%$ ConnectionStrings:myFirstDatabase.ProviderName %>" 
                SelectCommand="SELECT * FROM [tblArticleType]"></asp:SqlDataSource>
        </li>
              <li>
           <asp:Button ID="btnSubmit" runat="server" Text="Create Discussion" />
        </li>
    </ul>
    </form>
    </fieldset>
</asp:Content>

